home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Auge 4000 / Auge 4000 #47 (1990-06-22)(Amiga User Gruppe Einzugsgebiet 4000).zip / Auge 4000 #47 (1990-06-22)(Amiga User Gruppe Einzugsgebiet 4000).adf / arp-pro1.3 / OLD_MANUAL / CompareLock < prev    next >
Text File  |  1990-06-22  |  1KB  |  67 lines

  1.  
  2.  
  3.  
  4.      CompareLock(31.0)      ARP Programmers Manual     CompareLock(31.0)
  5.  
  6.  
  7.  
  8.      NAME
  9.       CompareLock -    Compares two locks for "equality"
  10.  
  11.      SYNOPSIS
  12.       Result = CompareLock(    Lock1, Lock2 )
  13.        D0               D0      D1
  14.  
  15.      FUNCTION
  16.       This function    may be used to determine if two    file Locks
  17.       obtained with    the DOS    Lock() function    belong to the same
  18.       file/object.    Using this library call    allows an application
  19.       to avoid using private information; this call    may be updated
  20.       if/when a DOS    Packet ACTION_COMPARE_LOCK is implemented.
  21.  
  22.      INPUTS
  23.       Lock1    - Pointer to a lock
  24.  
  25.       Lock2    - Pointer to a lock
  26.  
  27.      RESULTS
  28.       Result - Result is a return code as documented in
  29.           arpbase.[hi] A zero return code indicates that the
  30.           locks    refer to the same filesystem object, i.e., are
  31.           "equal".  Assembly language programmers may rely on
  32.           the Z-Flag return from this function.
  33.  
  34.      BUGS
  35.       Caveat, this function    now uses information that is
  36.       considered "private" to each filehandler; thus, it is
  37.       possible it will give    an erroneous result if somebody
  38.       implements a funny filehandler.  This    function was included
  39.       primarily for    the Rename program, to prevent Rename from
  40.       creating directory loops that    cause the directory to be lost
  41.       in BCPL-space.
  42.  
  43.      AUTHOR
  44.       CDH
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                         (printed 2/22/88)
  64.  
  65.  
  66.  
  67.